const state = {
  lastTree: null
}

const getters = {
  getLastTree: state => {
    return state.lastTree
  }
}

const mutations = {
  muLastTree (state, payload) {
    state.lastTree = payload
  },
  muLastTreeChecked (state, payload) {
    state.lastTree.checked = payload
  }
}

export default {
  state,
  getters,
  mutations
}
